package com.aspose.cells;

class zcdm extends zcdb {
   zcdm(Protection var1) {
      this.d = 535;
      this.c = new byte[66];
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.b()), 0, this.c, 0, 2);
      if (!var1.getAllowEditingContent()) {
         this.c[2] = 1;
      }

      if (var1.getAllowEditingObject()) {
         this.c[6] = 1;
      }

      if (var1.getAllowEditingScenario()) {
         this.c[10] = 1;
      }

      if (var1.getAllowFormattingCell()) {
         this.c[14] = 1;
      }

      if (var1.getAllowFormattingColumn()) {
         this.c[18] = 1;
      }

      if (var1.getAllowFormattingRow()) {
         this.c[22] = 1;
      }

      if (var1.getAllowInsertingColumn()) {
         this.c[26] = 1;
      }

      if (var1.getAllowInsertingRow()) {
         this.c[30] = 1;
      }

      if (var1.getAllowInsertingHyperlink()) {
         this.c[34] = 1;
      }

      if (var1.getAllowDeletingColumn()) {
         this.c[38] = 1;
      }

      if (var1.getAllowDeletingRow()) {
         this.c[42] = 1;
      }

      if (var1.getAllowSelectingLockedCell()) {
         this.c[46] = 1;
      }

      if (var1.getAllowSorting()) {
         this.c[50] = 1;
      }

      if (var1.getAllowFiltering()) {
         this.c[54] = 1;
      }

      if (var1.getAllowUsingPivotTable()) {
         this.c[58] = 1;
      }

      if (var1.getAllowSelectingUnlockedCell()) {
         this.c[62] = 1;
      }

   }
}
